package com.hurried1y.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hurried1y.utils.PageUtils;
import org.springframework.stereotype.Service;
import com.hurried1y.mapper.UserWalletDetailMapper;
import com.hurried1y.model.entity.UserWalletDetail;
import com.hurried1y.service.UserWalletDetailService;

import java.util.List;
import java.util.Map;

/**
 * (UserWalletDetail)表服务实现类
 *
 * @author Hurried1y
 * @since 2023-06-19 11:09:31
 */
@Service
public class UserWalletDetailServiceImpl extends ServiceImpl<UserWalletDetailMapper, UserWalletDetail> implements UserWalletDetailService {
    @Override
    public PageUtils getPage(Map<String, Object> params) {
        int page = Integer.parseInt(params.get("page").toString());
        int limit = Integer.parseInt(params.get("limit").toString());
        List<UserWalletDetail> list = baseMapper.getList(params);
        return new PageUtils(list, list.size(), limit, page);
    }
}

